package cn.tedu.charging.order.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: Miyako
 * @Date: 2024-10-14-11:19
 * @Description:
 */
@Configuration
public class RestTemplateConfig {


    /**
     * @param: []
     * @return: org.springframework.web.client.RestTemplate
     * @description: 创建一个配置类对restTemplate进行自动装配 bean标签是将其注册进ioc容器
     **/
    @Bean
    public RestTemplate restTemplate(){
        RestTemplate restTemplate = new RestTemplate();
        return restTemplate;
    }
}
